import Mobile from "@/viewsMobile/index.vue";

const finalRoutes = [
  {
    path: "/",
    name: "/home",
    component: () => import(/* webpackChunkName: "about" */ "../views/HomeView.vue"),
    children: [
      {
        path: "/homePage",
        name: "homePage",
        component: () => import(/* webpackChunkName: "about" */ "../views/HomePage/HomePage.vue")
      },
      {
        path: "/bigDataCase",
        name: "bigDataCase",
        component: () => import(/* webpackChunkName: "about" */ "../views/BigDataCase/index.vue")
      },
      {
        path: "/userMgr",
        name: "userMgr",
        component: () => import(/* webpackChunkName: "about" */ "../views/UserMgr/index.vue")
      },
      {
        path: "/comlibrary",
        name: "comlibrary",
        component: () => import(/* webpackChunkName: "about" */ "../views/ComLibrary/index.vue"),
        children: [
          {
            path: "/comlibrary/webSocket",
            name: "webSocket",
            component: () => import(/* webpackChunkName: "about" */ "../views/ComLibrary/WebSocket.vue")
          },
          {
            path: "/comlibrary/fileUpload",
            name: "fileUpload",
            component: () => import(/* webpackChunkName: "about" */ "../views/ComLibrary/FileUpload.vue")
          },
          {
            path: "/comlibrary/aciTree",
            name: "aciTree",
            component: () => import(/* webpackChunkName: "about" */ "../views/ComLibrary/AciTree.vue")
          },
          {
            path: "/comlibrary/canvas",
            name: "canvas",
            component: () => import(/* webpackChunkName: "about" */ "../views/ComLibrary/Canvas.vue")
          },
          {
            path: "/comlibrary/pinia",
            name: "pinia",
            component: () => import(/* webpackChunkName: "about" */ "../views/ComLibrary/Pinia.vue")
          },
          {
            path: "/comlibrary/echarts",
            name: "echarts",
            component: () => import(/* webpackChunkName: "about" */ "../views/ComLibrary/Echarts.vue")
          },
          {
            path: "/comlibrary/vxeTree",
            name: "vxeTree",
            component: () => import(/* webpackChunkName: "about" */ "../views/ComLibrary/VxeTree.vue")
          },
          {
            path: "/comlibrary/element",
            name: "element",
            component: () => import(/* webpackChunkName: "about" */ "../views/ComLibrary/Element.vue")
          },
          {
            path: "/comlibrary/overview",
            name: "overview",
            component: () => import(/* webpackChunkName: "about" */ "../views/ComLibrary/Overview.vue")
          },
          {
            path: "/comlibrary/vxe",
            name: "vxe",
            component: () => import(/* webpackChunkName: "about" */ "../views/ComLibrary/Vxe.vue")
          },
          {
            path: "/comlibrary/customCom",
            name: "customCom",
            component: () => import(/* webpackChunkName: "about" */ "../views/ComLibrary/CustomCom.vue")
          }
        ]
      }
    ]
  },
  {
    path: '/mobile',
    name: 'mobile',
    component: Mobile,
    children: [
      {
        path: "/mobile/home",
        name: "home",
        component: () => import(/* webpackChunkName: "home" */ "@/viewsMobile/components/home.vue")
      },
      {
        path: "/mobile/map",
        name: "map",
        component: () => import(/* webpackChunkName: "home" */ "@/viewsMobile/components/map.vue")
      }
    ]
  },
]
export default finalRoutes